// 一个复杂数据
const res = { name: '小花', city: '武汉',  skills: ['js', 'css'], address: 'string' }

type Stu = typeof res

// type Stu = {name:string, city:string, skills: string[]}

function fn(obj:Stu) {
  // 这里写obj.没有提示
  obj.
}

fn(res)